package com.tools.common.thread;

import com.tools.common.object.CustomHandler;
import com.tools.common.object.Note;

/**
 * 线程任务类
 * 对于线程要执行的任务可以
 * 构建该对象
 * */
@Note("线程任务类，对于线程要执行的任务可以构建该对象")
public abstract class OwnRunnable extends CustomHandler implements Runnable {

    public OwnRunnable() {
    }

    public OwnRunnable(Object parameter) {
        super(parameter);
    }

    public OwnRunnable(Object... parameters) {
        super(parameters);
    }

    public OwnRunnable(Iterable parameters) {
        super(parameters);
    }

    @Override
    public abstract void run();

    @Override
    public String toString() {
        return "ThreadTask-Parameters: " + super.toString();
    }
}
